<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    登录成功！！！
    <form action="/security/logout" method="post">
        <input type="hidden" name="_csrf" th:value="${_csrf.token}" th:if="${_csrf}">
        <button type="submit">form post退出</button>
    </form>
    <a href="/security/logout" th:href="@{/logout}">链接get退出</a>
    <a href="/security/toMain1" th:href="@{/toMain1}">跳转</a>
</body>
</html>